addUpdateData <src>
add memo to an unsigned transaction.
Usage
const transaction = await tronWeb.transactionBuilder.addUpdateData(unsignedTransaction, memo, dataFormat, options);
Parameters
| Argument | Description | Type |
|---|---|---|
| unsignedTransaction | Unsigned transaction object. | JSON |
| memo | Memo info | Utf8 string or Hex string |
| dataFormat | Optional. The format of memo parameter. If the memo is hex string, this parameter should be hex. Default is utf8. | hex or utf8 |
| options | Optional. Options for addUpdateData. If options.txLocal is true, it will build locally. Default is { txLocal: false }. | { txLocal: boolean } |